package com.seek.eduservice.mapper;

import com.seek.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.seek.eduservice.entity.vo.CoursePublishVo;
import com.seek.eduservice.entity.vo.CourseQuery;
import com.seek.eduservice.entity.vo.front.CourseInfoVo;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author wml
 * @since 2022-01-16
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    // 根据课程 id 查询课程确认信息
    CoursePublishVo getPublishCourseInfo(String courseId);

    // 根据条件查询课程信息带分页 查列表数据
    List<CourseQuery> getPageCondition(CourseQuery courseQuery);

    // 根据条件查询课程信息带分页 查总数
    int getCountByCourseQuery(CourseQuery courseQuery);

    // 根据课程 id 查询课程信息
    CourseInfoVo getBaseCourseInfo(String courseId);
}
